//引入vue
import Vue from "vue";
//引入vueRoter
import VueRouter from 'vue-router'
//引入组件
import Header from '../page/Header'
import Footer from '../page/Footer'
//使用VueRouter插件
Vue.use(VueRouter)
//暴漏并实例化VueRouter对象
export default new VueRouter({
  //在实例化路由器对象的配置中,书写路由表配置
  routes: [
    { path: "/Header", component: Header },
    { path: "/Footer", component: Footer }
  ]
})